package com.service.impl;

import com.mapper.DepartmentMapper;
import com.pojo.Department;
import com.service.DepartmentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DepartmentServiceimpl implements DepartmentService {
    @Resource
    private DepartmentMapper departmentMapper;
    @Override
    public List<Department> selectdepartall() {
        List<Department> selectdepartall = departmentMapper.selectdepartall();
        return selectdepartall;
    }

    @Override
    public int insertSelective(Department record) {
        int i = departmentMapper.insertSelective(record);
        return i;
    }
}
